package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.vo.business.ProductStockVO;
import com.goods.common.vo.business.ProductVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

public interface ProductService {
  PageVO<ProductVO> findProductList(Integer pageNum, Integer pageSize, ProductVO productVO);

  void add(ProductVO productVO);

  ProductVO edit(Long id) throws BusinessException;

  void update(Long id, ProductVO productVO);

  void remove(Long id) throws BusinessException;

  void back(Long id) throws BusinessException;

  void delete(Long id) throws BusinessException;

  void publish(Long id) throws BusinessException;

  PageVO<ProductStockVO> findProductStocks(Integer pageNum, Integer pageSize, ProductVO productVO);

  List<ProductStockVO> findAllStocks(Integer pageNum, Integer pageSize, ProductVO productVO);
}
